package com.firefightingiot.firefightingiot.web.mapper.alarmtoday;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.firefightingiot.firefightingiot.model.DeviceAlarmLog;
import com.firefightingiot.firefightingiot.model.alarmtoday.DeviceAlarmLogAllToday;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DeviceAlarmLogAllTodayMapper extends BaseMapper<DeviceAlarmLogAllToday> {

    void insertLogs(DeviceAlarmLog deviceAlarmLog);

    Map<String, Object> selectByLogId(String alarmId);

    List<Map<String, Object>> selectEleGroupByAlarmType(JSONObject jSONObject);

    List<Map<String, Object>> selectChargingStationGroupByAlarmType(JSONObject jSONObject);

}
